package com.thunder.component;

import java.awt.Graphics;
import java.awt.image.BufferedImage;

import com.thunder.utils.Constant;
import com.thunder.utils.GameUtil;

public class Rubbish {
	private final BufferedImage image;
	private final int x;
	private final int y;
	
	public Rubbish(int x0, int y0) {
		x = x0;
		y = y0;
		image = GameUtil.loadBufferedImage(Constant.RUBBISH_IMG_PATH);
		
	}
	
	public void draw(Graphics g) {
		g.drawImage(image, x, y, null);
	}
}
